Apache ActiveMQ ™ -- Advisory Support in ActiveMQ 3
Site > Old Links > Previous Versions > Advisory Support in ActiveMQ 3
For users of Apache ActiveMQ 4.0 or later please see Advisory Message. In previous 3.x versions the following is supported:-
The destination string constants are available in ActiveMQDestination
<![CDATA[ ActiveMQDestination.CONSUMER_ADVISORY_PREFIX ActiveMQDestination.PRODUCER_ADVISORY_PREFIX ActiveMQDestination.CONNECTION_ADVISORY_PREFIX ActiveMQDestination.TEMP_DESTINATION_ADVISORY_PREFIX ]]>
A subscription to each of the destination returns an ObjectMessage with a specific object: ConsumerInfo, ProducerInfo,ConnectionInfo, TempDestinationAdvisoryEvent.
For example:
<![CDATA[ ... String advisoryName = ActiveMQDestination.PRODUCER_ADVISORY_PREFIX + destination.getPhysicalName(); Destination advisoryDestination = ActiveMQDestination.createDestination(destination.getDestinationType(), advisoryName); MessageConsumer consumer = session.createConsumer(advisoryDestination); consumer.setMessageListener(this); .... public void onMessage(Message msg){ if (msg instanceof ObjectMessage){ try { ProducerInfo info = (ProducerInfo)((ObjectMessage)msg).getObject(); } catch (JMSException e) { log.error("Failed to process message: " + msg); } } } ]]>
Overview
Search
Sub Projects
Community
- Support
- Contributing
- Discussion Forums
- Mailing Lists
- IRC
- IRC Log
- Site
- Sponsorship
- Projects Using ActiveMQ
- Users
- Team
- Thanks
Features
- Advisory Message
- Clustering
- Cross Language Clients
- Enterprise Integration Patterns
- JMX
- JMS to JMS Bridge
- MasterSlave
- Message Groups
- Networks of Brokers
- Performance
- Persistence
- Security
- Virtual Destinations
- Visualisation
- More ...
Connectivity
- Ajax
- AMQP
- Axis and CXF Support
- C Integration
- C++
- C# and .Net Integration
- CMS
- J2EE
- JBoss Integration
- Jetty
- JNDI Support
- NMS
- REST
- RSS and Atom
- Spring Support
- Stomp
- Tomcat
- Unix Service
- WebLogic Integration
- XMPP
- More ...
Using ActiveMQ 5
- Getting Started
- Initial Configuration
- Running a Broker
- Embedded Brokers
- Command Line Tools
- Configuring Transports
- Examples
- Web Samples
- Monitoring the Broker
- Xml Configuration
- Xml Reference
- More ...
Using ActiveMQ 4
- Getting Started
- Initial Configuration
- Running a Broker
- Embedded Brokers
- Command Line Tools
- Configuring Transports
- Examples
- Web Samples
- Monitoring the Broker
- Xml Configuration
- Xml Reference
- More ...
Tools
External Tools
Support
Related Projects
Developers
Tests
- Maven2 Performance Plugin
- Benchmark Tests
- JMeter System Tests
- JMeter Performance Tests
- Integration Tests